package com.redoor.app.stake.basicdata.service;

import com.redoor.app.stake.basicdata.model.BaseSystemOperationLog;
import com.redoor.app.stake.basicdata.model.BussinessTypeEnum;
import com.redoor.app.stake.basicdata.model.controllerModel.BaseSystemOperationLogCriteria;
import com.redoornetwork.framework.mybatis.service.Service;

import java.util.List;

/**
 * Created by wangjunlei on 2018-03-08 17:30:08.
 */
public interface BaseSystemOperationLogService extends Service<BaseSystemOperationLog, String> {

    /**
     * 添加系统操作日志
     * @param web_operator_type
     * @param action_type
     * @param targetuuid
     * @param remark
     * @param intoRedis 是否延迟写入缓存处理
     */
    void addSystemOperationLog(BussinessTypeEnum.WEB_OPERATOR_TYPE web_operator_type,BussinessTypeEnum.TAG_TYPE action_type,String targetuuid,String remark,boolean intoRedis);

    /**
     * 批量写入数据库
     * @param logList
     */
    int saveAll(List<BaseSystemOperationLog> logList);

    /**
     * 分页查询页面操作日志列表
     * @param params
     * @return
     */
    List<BaseSystemOperationLog> qrySystemOperationLogByContion(BaseSystemOperationLogCriteria params);

    /**
     * 查询条件下列表总数
     * @param params
     * @return
     */
    int qrySystemOperationLogCnt(BaseSystemOperationLogCriteria params);
}
